﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UFSSServerClasses
{
    public class UFSSFile
    {
        public int userid;
        public string filename;
        public int filesize;
        public DateTime dateadded;
        public int downloads;
        public string hash;
        public string subname;
        public int ownerid;

        public UFSSFile()
        {
        }

        public UFSSFile(int fileid, string name, int size, DateTime date, string subname = null, int downloads = 0, string filehash = null)
        {
            this.userid = fileid;
            this.filename = name;
            this.filesize = size;
            this.dateadded = date;
            this.downloads = downloads;
            this.hash = filehash;
            this.subname = subname;
        }

        public void setOwnerid(int ownerid)
        {
            this.ownerid = ownerid;
        }

        public int getUserID()
        {
            return this.userid;
        }

        public string getFileName()
        {
            return this.filename;
        }

        public int getFileSize()
        {
            return this.filesize;
        }

        public DateTime getDateAdded()
        {
            return this.dateadded;
        }
    }
}
